package com.example.voting_master.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

@Data
@TableName(value = "vote_theme")
public class VoteTheme implements Serializable {
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    @TableField(value = "theme")
    private String theme;

    @TableField(value = "create_time")
    private String createTime;

    @TableField(value = "start_time")
    private String startTime;

    @TableField(value = "end_time")
    private String endTime;

    @TableField(value = "organizer")
    private String organizer;

    @TableField(value = "vote_rule")
    private String voteRule;

    @TableField(value = "introduction")
    private String introduction;

    @TableField(value = "award_name")
    private String AwardName;

    @TableField(value = "votes_per_day")
    private Integer votesPerDay;

    @TableField(value = "extra_info")
    private String extraInfo;

    @TableField(value = "total_visits")
    private Long totalVisits;

    @TableField(value = "total_votes")
    private Long totalVotes;

    @TableField(exist = false)
    private List<Candidate> candidates;

    public VoteTheme(){
        super();
    }
}
